package com.j2eefast.bussiness.contract.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.j2eefast.bussiness.contract.entity.HrProfessionalEntity;
import com.j2eefast.bussiness.contract.entity.HrTransferEntity;
import com.j2eefast.framework.sys.entity.SysUserEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>职称管理</p>
 *
 * @author: summer
 * @date: 2021-06-09 10:41
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
public interface HrProfessionalMapper extends BaseMapper<HrProfessionalEntity> {

    boolean updateRepair(@Param("recordList") List<HrProfessionalEntity> recordList);

    boolean saveRepair(@Param("recordList") List<HrProfessionalEntity> recordList);

    boolean updateQuit(@Param("hrPersonnelEntity") HrProfessionalEntity hrProfessionalEntity);

    List<HrProfessionalEntity> repairList(@Param("id") int id);
    HrProfessionalEntity repairInfo(@Param("id") int id);

    public boolean deleteByIds(@Param("ids") Long[] ids);
    public boolean updateCheck(@Param("id") Long id, @Param("userId") Long userId);
    //查询用户信息
    public SysUserEntity getSysById(@Param("userId") Long userId);

    /**
     * 页面查询流程实例分页
     * @return
     */
    Page<HrProfessionalEntity> findPage(IPage<?> params,
                                        @Param("userCode") String userCode,
                                        @Param("userCode2") String userCode2,
                                        @Param("userName") String userName,
                                        @Param("userName2") String userName2,
                                        @Param("depId") String depId,
                                        @Param("title") String title,
                                        @Param("employUnit") String employUnit,
                                        @Param("obtainMode") String obtainMode,
                                        @Param("beginTime") String startTime,
                                        @Param("endTime") String endTime);

    List<HrProfessionalEntity> findList(
            @Param("userCode") String userCode,
            @Param("userCode2") String userCode2,
            @Param("userName") String userName,
            @Param("userName2") String userName2,
            @Param("depId") String depId,
            @Param("title") String title,
            @Param("employUnit") String employUnit,
            @Param("obtainMode") String obtainMode,
            @Param("beginTime") String startTime,
            @Param("endTime") String endTime,
//            @Param("ids") Long[] ids,
            @Param("sql_filter") String sql_filter);

}
